[INFO] cloning repository https://github.com/pedramcode/rust-http
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pedramcode/rust-http" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpedramcode%2Frust-http", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpedramcode%2Frust-http'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 9be1cda0c855941b3fd25a37978540b211750eaa
[INFO] checking pedramcode/rust-http against master#029c9e18dd1f4668e1d42bb187c1c263dfe20093 for pr-157562
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpedramcode%2Frust-http" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/pedramcode/rust-http
[INFO] finished tweaking git repo https://github.com/pedramcode/rust-http
[INFO] tweaked toml for git repo https://github.com/pedramcode/rust-http written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/pedramcode/rust-http on toolchain 029c9e18dd1f4668e1d42bb187c1c263dfe20093
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+029c9e18dd1f4668e1d42bb187c1c263dfe20093" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/pedramcode/rust-http already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+029c9e18dd1f4668e1d42bb187c1c263dfe20093" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3e793bdf10248eb2ddbd6b0faebed8155c11b4589982e2893733958d93e8d540" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 4d324662ac6f793a1d5f3f173dec80233cea282bbe44a393d1f4ff15346c957f
[INFO] running `Command { std: "docker" "start" "4d324662ac6f793a1d5f3f173dec80233cea282bbe44a393d1f4ff15346c957f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "4d324662ac6f793a1d5f3f173dec80233cea282bbe44a393d1f4ff15346c957f" "/opt/rustwide/cargo-home/bin/cargo" "+029c9e18dd1f4668e1d42bb187c1c263dfe20093" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4d324662ac6f793a1d5f3f173dec80233cea282bbe44a393d1f4ff15346c957f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "4d324662ac6f793a1d5f3f173dec80233cea282bbe44a393d1f4ff15346c957f" "/opt/rustwide/cargo-home/bin/cargo" "+029c9e18dd1f4668e1d42bb187c1c263dfe20093" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking rust-http v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: value assigned to `version` is never read
[INFO] [stdout]   --> src/http/parser.rs:74:35
[INFO] [stdout]    |
[INFO] [stdout] 74 |         let mut version: String = String::new();
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 87 |             version = head_tokens[2].to_string();
[INFO] [stdout]    |             ------- `version` is overwritten here before the previous value is read
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_string` is never used
[INFO] [stdout]   --> src/http/parser.rs:32:8
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Method {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 32 |     fn to_string(&self) -> &str {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/http/parser.rs:55:9
[INFO] [stdout]    |
[INFO] [stdout] 54 | pub struct HTTPMessage {
[INFO] [stdout]    |            ----------- fields in this struct
[INFO] [stdout] 55 |     pub kind: Kind,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 56 |     pub version: String,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 57 |     pub url: Option<String>,
[INFO] [stdout]    |         ^^^
[INFO] [stdout] 58 |     pub status: Option<u32>,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 59 |     pub reason: Option<String>,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 60 |     pub method: Option<Method>,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 61 |     pub headers: Option<HashMap<String, String>>,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 62 |     pub body: Option<String>,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HTTPMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `version` is never read
[INFO] [stdout]   --> src/http/parser.rs:74:35
[INFO] [stdout]    |
[INFO] [stdout] 74 |         let mut version: String = String::new();
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 87 |             version = head_tokens[2].to_string();
[INFO] [stdout]    |             ------- `version` is overwritten here before the previous value is read
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_string` is never used
[INFO] [stdout]   --> src/http/parser.rs:32:8
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Method {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 32 |     fn to_string(&self) -> &str {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/http/parser.rs:55:9
[INFO] [stdout]    |
[INFO] [stdout] 54 | pub struct HTTPMessage {
[INFO] [stdout]    |            ----------- fields in this struct
[INFO] [stdout] 55 |     pub kind: Kind,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 56 |     pub version: String,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 57 |     pub url: Option<String>,
[INFO] [stdout]    |         ^^^
[INFO] [stdout] 58 |     pub status: Option<u32>,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 59 |     pub reason: Option<String>,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 60 |     pub method: Option<Method>,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 61 |     pub headers: Option<HashMap<String, String>>,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 62 |     pub body: Option<String>,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HTTPMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.23s
[INFO] running `Command { std: "docker" "inspect" "4d324662ac6f793a1d5f3f173dec80233cea282bbe44a393d1f4ff15346c957f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4d324662ac6f793a1d5f3f173dec80233cea282bbe44a393d1f4ff15346c957f", kill_on_drop: false }`
[INFO] [stdout] 4d324662ac6f793a1d5f3f173dec80233cea282bbe44a393d1f4ff15346c957f
